package com.cropdoctor.search;

public class VegeFruTableConstants {
    public static final String POST_MAPPING_TEMPLATE = "{\n" +
            "    \"mappings\": {\n" +
            "      \"properties\": {\n" +
            "        \"user_name\": {\n" +
            "          \"type\": \"text\",\n" +
            "          \"analyzer\": \"ik_max_word\",\n" +
            "          \"search_analyzer\": \"ik_smart\",\n" +
            "          \"copy_to\": \"all\"\n" +
            "        },\n" +
            "        \"title\": {\n" +
            "          \"type\": \"text\",\n" +
            "          \"analyzer\": \"ik_max_word\",\n" +
            "          \"search_analyzer\": \"ik_smart\",\n" +
            "          \"copy_to\": \"all\"\n" +
            "        },\n" +
            "        \"text\": {\n" +
            "          \"type\": \"text\",\n" +
            "          \"analyzer\": \"ik_max_word\",\n" +
            "          \"search_analyzer\": \"ik_smart\",\n" +
            "          \"copy_to\": \"all\"\n" +
            "        },\n" +
            "        \"all\": {\n" +
            "          \"type\": \"text\",\n" +
            "          \"analyzer\": \"ik_max_word\",\n" +
            "          \"search_analyzer\": \"ik_smart\"\n" +
            "        },\n" +
            "        \"url\": {\n" +
            "          \"type\": \"keyword\",\n" +
            "          \"index\":false\n" +
            "        },\n" +
            "        \"create_date_time\": {\n" +
            "          \"type\": \"keyword\",\n" +
            "          \"index\":false\n" +
            "        }\n" +
            "      }\n" +
            "    }\n" +
            "  }";
    public static final String COURSE_MAPPING_TEMPLATE = "{\n" +
            "    \"mappings\": {\n" +
            "      \"properties\": {\n" +
            "        \"uploader_name\": {\n" +
            "          \"type\": \"text\",\n" +
            "          \"analyzer\": \"ik_max_word\",\n" +
            "          \"search_analyzer\": \"ik_smart\",\n" +
            "          \"copy_to\": \"all\"\n" +
            "        },\n" +
            "        \"title\": {\n" +
            "          \"type\": \"text\",\n" +
            "          \"analyzer\": \"ik_max_word\",\n" +
            "          \"search_analyzer\": \"ik_smart\",\n" +
            "          \"copy_to\": \"all\"\n" +
            "        },\n" +
            "        \"description\": {\n" +
            "          \"type\": \"text\",\n" +
            "          \"analyzer\": \"ik_max_word\",\n" +
            "          \"search_analyzer\": \"ik_smart\",\n" +
            "          \"copy_to\": \"all\"\n" +
            "        },\n" +
            "        \"url\": {\n" +
            "          \"type\": \"keyword\",\n" +
            "          \"index\":false\n" +
            "        },\n" +
            "        \"mt\": {\n" +
            "          \"type\": \"keyword\"\n" +
            "        },\n" +
            "        \"st\": {\n" +
            "          \"type\": \"keyword\"\n" +
            "        },\n" +
            "        \"status\": {\n" +
            "          \"type\": \"keyword\"\n" +
            "        },\n" +
            "        \"all\": {\n" +
            "          \"type\": \"text\",\n" +
            "          \"analyzer\": \"ik_max_word\",\n" +
            "          \"search_analyzer\": \"ik_smart\"\n" +
            "        }\n" +
            "      }\n" +
            "    }\n" +
            "  }";

    public static final String TABLE_MAPPING_TEMPLATE = "{\n" +
            "    \"mappings\": {\n" +
            "      \"properties\": {\n" +
            "        \"id\": {\n" +
            "          \"type\": \"long\"\n" +
            "        },\n" +
            "        \"name\": {\n" +
            "          \"type\": \"text\",\n" +
            "          \"analyzer\": \"ik_max_word\",\n" +
            "          \"search_analyzer\": \"ik_smart\",\n" +
            "          \"copy_to\": \"all\"\n" +
            "        },\n" +
            "        \"st\": {\n" +
            "          \"type\": \"keyword\"\n" +
            "        },\n" +
            "        \"mt\": {\n" +
            "          \"type\": \"keyword\"\n" +
            "        },\n" +
            "        \"alias\": {\n" +
            "          \"type\": \"text\",\n" +
            "          \"analyzer\": \"ik_max_word\",\n" +
            "          \"search_analyzer\": \"ik_smart\",\n" +
            "          \"copy_to\": \"all\"\n" +
            "        },\n" +
            "        \"all\": {\n" +
            "          \"type\": \"text\",\n" +
            "          \"analyzer\": \"ik_max_word\",\n" +
            "          \"search_analyzer\": \"ik_smart\"\n" +
            "        },\n" +
            "        \"des\":{\n" +
            "          \"type\": \"keyword\",\n" +
            "          \"index\": false\n" +
            "        },\n" +
            "        \"suggestion\":{\n" +
            "          \"type\": \"keyword\",\n" +
            "          \"index\": false\n" +
            "        },\n" +
            "        \"family\":{\n" +
            "          \"type\": \"keyword\",\n" +
            "          \"index\": false\n" +
            "        },\n" +
            "        \"light\":{\n" +
            "          \"type\": \"keyword\",\n" +
            "          \"index\": false\n" +
            "        },\n" +
            "        \"soilTypes\":{\n" +
            "          \"type\": \"keyword\",\n" +
            "          \"index\": false\n" +
            "        },\n" +
            "        \"soilPh\":{\n" +
            "          \"type\": \"keyword\",\n" +
            "          \"index\": false\n" +
            "        },\n" +
            "        \"reproductivePeriod\":{\n" +
            "          \"type\": \"keyword\",\n" +
            "          \"index\": false\n" +
            "        }\n" +
            "      }\n" +
            "    }\n" +
            "  }";
}
